home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3742 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: bcfreenet.seflin.lib.fl.us!bcfreenet!z007400b
  2. From: z007400b@bcfreenet.seflin.lib.fl.us (Ralph Silverman)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: text file manipulation
  5. Date: 30 Jan 1996 19:47:21 GMT
  6. Organization: SEFLIN Free-Net - Broward
  7. Message-ID: <4elsk9$a30@bcfreenet.seflin.lib.fl.us>
  8. References: <4e6su7$6pu@paperboy.ids.net>
  9. NNTP-Posting-Host: bcfreenet.seflin.lib.fl.us
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. scarney (scarney@conan.ids.net) wrote:
  13.  
  14. : Another stupid question...
  15.  
  16. : I'm trying to write a little program to modify the /etc/passwd 
  17. : file...I'm curious how you take a line in a text file (like passwd) and 
  18. : change it. Does fwrite append, or if the file index is in the middle of 
  19. : the file will it overwrite whatever is there (i.e., do what I want to do 
  20. : with the file). If not, could you use the FILE pointer to change the data?
  21.  
  22. : Thanks.
  23.  
  24. : --Seth
  25.  
  26.  
  27. --
  28. ***********begin r.s. response*********
  29.  
  30.     interestingly,
  31.     this posting raises fascinating questions
  32.     about
  33.         unix system security
  34.     .
  35.     the file mentioned above,
  36.     in unix systems,
  37.     includes information fields
  38.     in encrypted form,
  39.     upon which
  40.         permissions
  41.     ,
  42.     and hence,
  43.         system security,
  44.     depend
  45.     .
  46.  
  47.     in the past,
  48.     those attempting to break
  49.         unix security
  50.     have found useful,
  51.     and even necessary,
  52.     the systematic modification
  53.     of such information in
  54.     such schemes.
  55.  
  56.     the notorious
  57.         ARPANET
  58.         CRASH
  59.     of some years ago,  now,
  60.     is thought to have depended
  61.     on a such mechanism...
  62.  
  63. ***********end r.s. response***********
  64. Ralph Silverman
  65. z007400b@bcfreenet.seflin.lib.fl.us
  66.  
  67.